#include"Fraction.h"
#include <iostream>
#include <cstdlib>
namespace CPPBook
{
	Fraction::Fraction() :number(0), denom(1)
	{
	}
	Fraction::Fraction(int n) : number(n), denom(1)
	{
	}
	Fraction::Fraction(int n, int d) : number(n), denom(d)
	{
		if (d == 0)
		{
			std::cerr << "error: denominator is 0" << std::endl;

		}
	}
	void Fraction::print()
	{
		std::cout << number << '/' << denom << std::endl;

	}
}